package com.ccxc.question.exam.dto;

import java.util.List;

import com.ccxc.question.exam.dto.QuestionOptionDTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@ApiModel(description = "试题")
@NoArgsConstructor
@ToString
public class QuestionDTO {
    @ApiModelProperty(value = "ID")
    @Getter
    @Setter
    private String id;

    @ApiModelProperty(value = "试题内容")
    @Getter
    @Setter
    private String content;

    @ApiModelProperty(value = "试题答案")
    @Getter
    @Setter
    private String answer;

    @ApiModelProperty(value = "知识领域")
    @Getter
    @Setter
    private String area;

    @ApiModelProperty(value = "试题选项")
    @Getter
    @Setter
    private List<QuestionOptionDTO> options;

    public QuestionDTO(String id, String content, String answer, String area) {
        this.id = id;
        this.content = content;
        this.answer = answer;
        this.area = area;
    }
}
